<?php

// A hack to emulate a real user that have all the privileges.
class Ext_Auth_RootUser
{

    public function __construct()
    {
        $this->user_id = $this->id = 0;
        $this->username = 'ROOT';
        $this->password = null;
        $this->ownerId = $this->owner_id = null;
        $this->creation_date = $this->creationDate = new Ext_Db_Date( Ext_Db_Date::NOW );
        $this->locked = false;
        $this->end_date = null;
    }

    public function isAllowed( $resource, $privilege )
    {
        return true;
    }
}